#include <stdio.h>
#include "Stack.h"
#include "cal.h"


int main()
{
	OPTR Operate; //运算符栈
	OPND Arithmetic; //操作数栈
	int result[STACK_SIZE] = { 0 };
	char character;
	int i = 0;
	Stack_Init_OPTR(&Operate);
	Stack_Init_OPND(&Arithmetic);
	Stack_Push_OPTR(&Operate, '#');
	int num = Input(&Operate, &Arithmetic, result);
	for (i = 0; i < num; i++)
	{
		printf("%d\n", result[i]);
	}
	return 0;
}